import request from 'umi-request';
import { API_URL_V2 } from './index';
export async function _login(params: any) {
  return request('sysUser/login', {
    method: 'POST',
    data: params,
    prefix: API_URL_V2,
  });
}

export async function _getObjBoxFishpondDevices(params: any) {
  return request('dataHisSwitch/getObjBoxFishpondDevices', {
    method: 'GET',
    params: params,
    prefix: API_URL_V2,
  });
}
export async function _getObjBoxInfo(params: any) {
  return request('objBox/getObjBoxInfo', {
    method: 'GET',
    params: params,
    prefix: API_URL_V2,
  });
}
export async function _openOrCloseSwitch(params: any) {
  return request('objBox/openOrCloseSwitch', {
    method: 'POST',
    data: params,
    prefix: API_URL_V2,
  });
}
